<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>HiAll Administrator's Control Panel</title>
        <link rel="stylesheet" href="css/common.css" type="text/css" media="all" />
    </head>
    <body>
        <div id="append"></div>
        <div class="container">
                <h2 class="admintitle">职位列表</h2>

                <div id="srchuserdiv" class="tabcontentcur" style="width:90%;position:relative">
			<form method="POST" action="" id="list_form">
			<table style="width:100%;">
				<tr><td>职位名称：<input type="text" name="name" value="" /></td>
				<td>所属分类：<?=$jobClassStr?></td>
				<td>职位状态：<?=$jobStatusStr?></td>
				<td colspan="3"><input type="submit" name="searchSubmit" value="查询" /></td>
				</tr>
			</table>
			<table style="width:100%;">
				<tr>
				    <input id="j_del" name="delBtn" onclick="return delConfirm()" type="submit" value="删除"/> 
					<input id="j_new" onclick="gonew('<?=$baseUrl?>/index.php?c=JobManage&a=Add')" type="button" value="新建"/>
					<input id="j_publish" type="submit" name="pubBtn" value="发布职位"/> 
					<select id="j_setstatus" name="setStatus" onchange="setJobStatus()">
						<option value="0">设置职位状态</option>
						<option value="2">暂停</option>
						<option value="1">启动</option>
					</select>
					</td>
				</tr>
			</table>
                    <table  class="datalist fixwidth">
						<tbody><tr>
							<th nowrap="nowrap"><input type="checkbox" onclick="checkAll(this)"/></th>
							<th nowrap="nowrap">职位名称</th>
							<th nowrap="nowrap">发布日期</th>
							<th nowrap="nowrap">更新日期</th>
							<th nowrap="nowrap">申请人数</th>
							<th nowrap="nowrap">职位类别</th>
							<th nowrap="nowrap">状态</th>
							<th nowrap="nowrap">排序号</th>
						</tr>
                            <?php 
			    	foreach($dataList as $info){
                             ?>
						<tr>
								<td width="20"><input type="checkbox" jval="1" name="id[]" value="<?=$info['id']?>" /></td>
								<td><a href="<?=$baseUrl?>/index.php?c=JobManage&a=Edit&id=<?=$info['id']?>" target="_blank"><?=$info['name']?></a></td>
								<td><?=date('Y-m-d H:i:s',$info['add_time'])?></td>
								<td><?=date('Y-m-d H:i:s',$info['update_time'])?></td>
								<td><?=intval($info['apply_num'])?></td>
								<td><?=$jobClassArr[$info['class_id']]?></td>
								<td><?=$jobStatusArr[$info['status']]?></td>
								<td><?=$info['sort_order']?></td>
						</tr>
							<?php
							}
							?>
					</tbody></table>
			</form>
			<table style="width:100%;">
				<tr>
					<td>
					<?=$pageStr?>
					</td>
				</tr>
			</table>
            </div>
        </div>

<script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/common.js"></script>
    </body>
</html>
